package cn.myjerry.test.ORM;

import java.sql.Date;

public class Employee {
	private int Id;
	private String Name;
	private Double Salary;
	private int Age;
	private Date Time;
	private int DepartmentId;
	private Department Department;
	public Employee() {
		super();
	}
	public Employee(String name, Double salary, int age) {
		super();
		Name = name;
		Salary = salary;
		Age = age;
	}
	public Employee(String name, Double salary, int age, Date time, int departmentId) {
		super();
		Name = name;
		Salary = salary;
		Age = age;
		Time = time;
		DepartmentId = departmentId;
	}
	public Employee(int id, String name, Double salary, int age, Date time, int departmentId) {
		super();
		Id = id;
		Name = name;
		Salary = salary;
		Age = age;
		Time = time;
		DepartmentId = departmentId;
	}
	public int getId() {
		return Id;
	}
	public void setId(int id) {
		Id = id;
	}
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	public Double getSalary() {
		return Salary;
	}
	public void setSalary(Double salary) {
		Salary = salary;
	}
	public int getAge() {
		return Age;
	}
	public void setAge(int age) {
		Age = age;
	}
	public Date getTime() {
		return Time;
	}
	public void setTime(Date time) {
		Time = time;
	}
	public int getDepartmentId() {
		return DepartmentId;
	}
	public void setDepartmentId(int departmentId) {
		DepartmentId = departmentId;
	}
	public Department getDepartment() {
		return Department;
	}
	public void setDepartment(Department department) {
		this.Department = department;
	}
	@Override
	public String toString() {
		return "{Id:" + Id + ", Name:" + Name + ", Salary:" + Salary + ", Age:" + Age + ", Time:" + Time
				+ ", DepartmentId:" + DepartmentId + ", Department:" + Department.toString() + "}";
	}
	
}
